<?php

declare(strict_types=1);

namespace App\Chat\Request;

use Mine\MineFormRequest;

class TalkKeywordCateRequest extends MineFormRequest
{
    public function saveRules()
    {
        return [
            'name' => 'required|max:60',
            'type' => 'required|in:0,1,2'
        ];
    }

    public function updateRules()
    {
        return [
            'id' => 'required',
            'name' => 'required|max:60',
        ];
    }

    public function deleteRules()
    {
        return [
            'id' => 'required'
        ];
    }
}